<%@ page import="org.apache.ibatis.session.SqlSession" %>
<%@ page import="myschool.kit.MybatisUtil" %>
<%@ page import="myschool.dao.StudentDao" %>
<%@ page import="myschool.entity.Student" %>
<%@ page import="java.util.List" %><%--
  Created by IntelliJ IDEA.
  User: admin
  Date: 2022/6/30
  Time: 16:14
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<%
    SqlSession sqlSession = MybatisUtil.getSqlSession(true);
    StudentDao mapper = sqlSession.getMapper(StudentDao.class);
    List<Student> list = mapper.findALL();
    MybatisUtil.close(sqlSession);
    for (Student student : list) {
        out.print(student+"<br/>");
    }
%>
<button>shshgsgs</button>
</body>
</html>
